import http from './http';

export const getCaptchaApi = (phone) => {
  return http({
    method: 'post',
    url: '/auth/getCaptcha',
    data: { // 改为 data，传递对象
      phone: phone,
    },
  });
};

export const loginApi = (data) => { // 修改为接受对象参数
  return http({
    method: 'post',
    url: '/auth/userLogin',
    data: data, 
  });
};

export const setPasswordApi = (data) => { // 修改为接受对象参数
  return http({
    method: 'post',
    url: '/auth/set-password',
    data: data, 
  });
};